package com.xizi.service_constructor;

// 构造器方式注入依赖（不可行）
public class ClientConstructor {
    public static void main(String[] args) {
//        new ServiceA(new ServiceB(new ServiceA()));//这会抛出编译异常
    }
}
